package com.xwli.springcloud.service.impl;

import com.xwli.springcloud.dao.DeptDao;
import com.xwli.springcloud.projo.Dept;
import com.xwli.springcloud.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xwli
 * @date: 2021/9/6 20:53
 * @desc
 * @since JDK 1.8
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptDao deptDao;

    @Override
    public Dept getDeptByDeptNo(Long deptNo) {
        return deptDao.getDeptByDeptNo(deptNo);
    }

    @Override
    public List<Dept> getDeptAll() {
        return deptDao.getDeptAll();
    }
}

